<template>
	<view class="content">
		<view class="logo_name">
			<image :src="settingData.logo" class="logo"></image>
			<view class="name">{{settingData.name}}</view>
		</view>
	
		<image class="customer" mode="widthFix" :src="settingData.customer"></image>
		
		<view class="bottom">
			<view>截图保存到本地打开微信</view>
			<view>添加微信客服</view>
		</view>
	</view>
</template>

<script>
	import api from '../../api'
	export default {
		data() {
			return {
				settingData:{},
			}
		},
		onLoad(option) {
			
		},
		onShow(){
			this.getSetting()
		},
		
		methods: {
			getSetting(){
				api.settings.show().then(res => {
					if (res.code === 200) {
						this.settingData = res.data
					}
				}).catch(error => {
					console.log(error)
				})
			},
		},
		
		
		
	}
</script>

<style lang="scss">
	.content {
		height: 100vh;
		background: linear-gradient(to bottom, #d6c8fa, #f7f7f7);
		.logo_name {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			margin-bottom:20rpx;
			.logo {
				width: 100rpx;
				height: 100rpx;
				margin: 40rpx 0 20rpx 0;
				border-radius: 20rpx;
			} 
		}
		.customer {
			width: 400rpx;
			margin: 50rpx auto;
			display:flex;
			align-items: center;
			justify-content: center;
		}
		
		.bottom {
			width: 400rpx;
			margin: 0 auto;
			display:flex;
			flex-direction: column;
			font-size: 24rpx;
			align-items: center;
			justify-content: center;
		}
	}
</style>